package com.college.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 消费记录
 * </p>
 *
 * @author yoki
 * @since 2024-05-29
 */
@Getter
@Setter
@TableName("spend_record")
@ApiModel(value = "SpendRecord对象", description = "消费记录")
public class SpendRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("卡号")
    @TableField("card_number")
    private Integer cardNumber;

    @ApiModelProperty("支出金额")
    @TableField("spend_amount")
    private Double spendAmount;

    @ApiModelProperty("支出时间")
    @TableField("spend_time")
    private Date spendTime;

    @ApiModelProperty("学期")
    @TableField("semester")
    private String semester;


}
